<project name="projbanque" default="build">

	<property name="source" value="src"/>
	<property name="classes" value="bin"/>
	<property name="jardir" value="build"/>
	<property name="jarfile" value="build/projbanque.jar"/>

	<target name="prepare" >

		<mkdir dir="${classes}"/>

	</target>

	<target name="compile" depends="prepare">

		<echo message="Compilation en cours..."/>

		<javac srcdir="${source}" destdir="${classes}"/>

		<echo message="Compilation finie"/>	

	</target>

	<target name="clean">

		<echo message="Nettoyage..."/>
		<delete file="${classes}"/>
		<delete file="${jardir}"/>

		

	</target>

	<target name="build" depends="compile">
		<mkdir dir="${jardir}"/>
		<jar jarfile="${jarfile}" basedir="${jardir}"/>

	</target>


</project>
